if (!window.cf) {
	window.cf = {};
}

if (!cf.cart) {
	cf.cart = {};
}

cf.cart.add = function(productId, amount, success)
{
	$.post(
		'/cf/call/cart.add',
		{'productId':productId, 'amount':amount},
		function (data) { success(data); },
		'json'
	);
}

cf.cart.list = function(success)
{
	$.post(
		'/cf/call/cart.getList',
		function (data) { success(data); },
		'json'
	);
}